$(document).ready(function() { $('span').on('mouseover', function() { $(this).addClass('fall'); }); });